package com.apanal.qlife.sys.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 验证码实体类
 * 
 * 
 * @author shuliangxing
 * 
 * @date 2015-9-9上午9:14:12
 */
public class Checkcode implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 532423643936612270L;

	/**
	 * id
	 */
	private Long codId;

	/**
	 * 类型，0=注册，1=密码找回
	 */
	private Integer codType;

	/**
	 * 手机号
	 */
	private String codMobile;

	/**
	 * 校验码
	 */
	private String codCode;

	/**
	 * 发送时间
	 */
	private Date codSendTime;

	/**
	 * 验证时间
	 */
	private Date codCheckTime;

	/**
	 * 状态,0=未使用，1=已使用
	 */
	private Boolean codUsed;

	public Long getCodId() {
		return codId;
	}

	public void setCodId(Long codId) {
		this.codId = codId;
	}

	public Integer getCodType() {
		return codType;
	}

	public void setCodType(Integer codType) {
		this.codType = codType;
	}

	public String getCodMobile() {
		return codMobile;
	}

	public void setCodMobile(String codMobile) {
		this.codMobile = codMobile == null ? null : codMobile.trim();
	}

	public String getCodCode() {
		return codCode;
	}

	public void setCodCode(String codCode) {
		this.codCode = codCode == null ? null : codCode.trim();
	}

	public Date getCodSendTime() {
		return codSendTime;
	}

	public void setCodSendTime(Date codSendTime) {
		this.codSendTime = codSendTime;
	}

	public Date getCodCheckTime() {
		return codCheckTime;
	}

	public void setCodCheckTime(Date codCheckTime) {
		this.codCheckTime = codCheckTime;
	}

	public Boolean getCodUsed() {
		return codUsed;
	}

	public void setCodUsed(Boolean codUsed) {
		this.codUsed = codUsed;
	}

	@Override
	public String toString() {
		return "Checkcode [codId=" + codId + ", codType=" + codType
				+ ", codMobile=" + codMobile + ", codCode=" + codCode
				+ ", codSendTime=" + codSendTime + ", codCheckTime="
				+ codCheckTime + ", codUsed=" + codUsed + "]";
	}
}